package com.lkx.farmershop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lkx.farmershop.common.api.ApiResult;
import com.lkx.farmershop.model.dto.QueryObj;
import com.lkx.farmershop.model.entity.Tag;
import com.lkx.farmershop.model.vo.GroupVo;

import java.util.List;

/**
 * (Tag)表服务接口
 *
 * @author makejava
 * @since 2025-01-25 14:59:32
 */
public interface TagService extends IService<Tag> {

    ApiResult<List<String>> getHotTags();

    ApiResult<List<String>> seachByQuery(String query);

    ApiResult<List<GroupVo>> searchByName(QueryObj queryObj);

    ApiResult<List<GroupVo>> searchByTag(QueryObj queryObj);

    ApiResult<List<String>> getUserTag(Long userId);

    ApiResult<String> updateTags(Long userId, List<String> tags);
}

